package org.water.garden.msn.activity;

import java.util.ArrayList;
import java.util.List;

import android.app.ListActivity;
import android.os.Bundle;
import android.view.MotionEvent;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.ListAdapter;
import android.widget.ListView;

/**
 * @author sshwsfc@gmail.com
 * 
 * Show MSN account status list for change
 */
public class AccountStatus extends ListActivity {

	private ListAdapter adapter;
	
	protected void onCreate(Bundle icicle) {
		super.onCreate(icicle);
		List<String> menus = new ArrayList<String>();
		menus.add("在线");
		menus.add("隐身");
		
		adapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, android.R.id.text1, menus);
		setListAdapter(adapter);
	}

	protected void onListItemClick(ListView l, View v, int position, long id) {
		
	}

	@Override
	protected void onActivityResult(int requestCode, int resultCode,
			String data, Bundle extras) {
		setResult(resultCode, data, extras);
		finish();
	}

	@Override
	public boolean onTouchEvent(MotionEvent event) {
		finish();
		return super.onTouchEvent(event);
	}
	
}
